package com.erp.pro.dao;

import com.erp.pro.domain.WarehouseDO;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Mapper;

/**
 * 仓库管理
 * @author Eric
 * @email shiliang900713@163.com
 * @date 2019-06-29 13:23:56
 */
@Mapper
public interface WarehouseDao {

	WarehouseDO get(Long id);
	
	List<WarehouseDO> list(Map<String, Object> map);
	
	int count(Map<String, Object> map);
	
	int save(WarehouseDO warehouse);
	
	int update(WarehouseDO warehouse);
	
	int remove(Long id);
	
	int batchRemove(Long[] ids);

    WarehouseDO findByName(String name);
}
